Page({
  data: {
    houseDetail: ""
  },
  editHouse() {

    wx.navigateTo({

      url: '/house_pkg/pages/form/index?id=' + this.data.id,
    })
  },
  onLoad({ id }) {
    this.GeteditHouse(id)
  },
  async GeteditHouse(id) {
    if (!id) return
    const { code, data: houseDetail } = await wx.http.get('/room/' + id)
    if (code !== 10000) return wx.utils.toast()
    this.setData({ ...houseDetail })
  }
})


